fix for end_time parameter problem