datpicker bug fixed