Fixed a minor bug in the display of Datepicker