Fixed bad bug in date range where accessing the end date caused the startdate to change