fixing error with blank end_year