Fixed mongo query for nearest