Calibrating Sonar height in Auto Mode

I have installed an i2c Maxbotic sonar on my quadcopter which is working fine in Alt_Hold mode. When I run a terrain mission and set the altitude to 1 meter in the waypoint, it actually flies at about 1.8 meters. I have set params to:
RNGFND_ADDR,0
RNGFND_FUNCTION,0
RNGFND_GAIN,2
RNGFND_GNDCLEAR,6
RNGFND_MAX_CM,700
RNGFND_MIN_CM,6
RNGFND_OFFSET,0
RNGFND_PIN,-1
RNGFND_PWRRNG,0
RNGFND_RMETRIC,0
RNGFND_SCALING,1.4
RNGFND_SETTLE,0
RNGFND_STOP_PIN,-1
WPNAV_RFND_USE,1
TERRAIN_ENABLE,1

While attached to missionPlanner on the ground sonarange reads 1.9

Does anyone know how I can get it to fly at 1 meter in auto mode terrain follow?