fixed datepicker compatibilty issue