fixing issue where end date is sometimes before start date for single date picker