fixed ERC error