Fix the atMaximumSensitivity and the atMinimumSensitivity logic