Fixed cache error.  Level depth not increasing/decreasing correctly.