fix time_table with ends at