fixed crash when entering a nonexistant resource