Fixed error where EndDate was not being updated