fix bugs for choosing date