fix compatability with recent core update