bug for near locations fixed