Fix fade factor calculation when there is no end time.