Fix sub dir recursion scan error.