fix the timepicker bug