fixed broken DepthMode