fixed end time error