fixed node selection by position

in a similar manner as I recently fixed tilesmap.