Fixed a bug with end_date when having multiple assignments