Fix wrong time update