fixed quiting crash when testing level directly