Correct depth check