Fixes datepicker