fix initialize_next_era for IE8