Bugfix: correctly determine min&max generalization