Hard Limits Turn off

I turned my hard stops on. But not my Z won’t go up all the way now. Has about an 1inch before it hits the switch. How would you that limits off. I tried. $21=0