Fixed depth issue apparently related to Z-values