fixed missing end_time