Fix autoscaling error with z(x,y)