fixed clustering failing with certain coordinates
fixed clustering failing with certain coordinates