fix bug when time select