fixes time assignment