stupid fix to datepicker incompatibilities