fix end time for files