Fixed little bug in distance()