Apparently we fixed the thing for non-periodic distances