bugfix in assertion statement in variogram