Fix search bug

Fix search incorect work with files