Fix setting time initialization problem