Fixed some ERC Errors