Fix error in erc, can be removed after 24.4