Bugfix for search file

Bugfix for search file