bugfix about zValue and isVisible