Fixed error on leaving a screen with enemies