Land mode and landing gear

Hi I need help with Land mode
When I switch from Loiter to Land fligh mode landing gear retract.
What I need to change i parameter?
I configured two posiotions switch for control landing gear
Regards

LGR_SERVO_RTRACT, 1250
LGR_SERVO_DEPLOY, 1750

Reverse them and then match your switch to the direction.