Make sure depth isn't zero