fix syntax error in erg