Bugfix in variogram