Fix building end time