Fixed bug in end_time_min slicing