fixed bug on near operator