Changed setMaximum() and setMinimum() methods