fix timepicker bug