fixes time type issue