ERA code fixed