Fixed datepicker not working