Fix for planet freezing.