fix custom date ranges