core: Fix Rayman2 freeze