proximity bugfix