fixed prey null pointer bug