fixed npe bug when dying and holding the ryder