fix nearentities checks
nearentities fix 2