fix bugs in the header time picker