Fixed ERC errors