fixes: distances should not be 0