I had the same problem this change fixed it.

var feedheight = -(my.min_z+2);

play with 2 till you get the right value.