fix for error at end of level.