fix z max min range