Fix findDeep function.
Remove unused code, clean code.