Fix error in searching for managed files.