Fix problems with variable bounds.