fix initialize_next_era