setProximity fix