Fixing erg syntax errors.