fixed small bug on datepicker