fix broken change.

got the min and the max backwards; sorry