Fixed update of time problem