fix bug with time inputs