bug fixes datepicker