Created by: vicdoval
Clamp option was not working properly when the New Max was lower than the New Min. This PR fixes that