fix crash with new CoFHCore