t_end and the duration in the backend is being changed differently and they should be changed at the same time.