Fix problem with real time