fixed bug in timepicker