Hack to get the datepicker to work