fix era workaround on mono