fixes minor issues with date-picker