fix searching from a view with no file name