Fix a typo and change variable name.

level/depth is not a pointer