small fix to searchfile