Bug fix: correctly initialize distance in slic