fix cave quitting on ghost death