fixed a fault calculation of the position in the map by selecting a point