fixed ERC errors