fix select date bug