fixed find depth