diff --git a/hsdev.cabal b/hsdev.cabal
--- a/hsdev.cabal
+++ b/hsdev.cabal
@@ -2,7 +2,7 @@
 --  see http://haskell.org/cabal/users-guide/
 
 name:                hsdev
-version:             0.1.2.1
+version:             0.1.2.2
 synopsis:            Haskell development library and tool with support of autocompletion, symbol info, go to declaration, find references etc.
 description:
   Haskell development library and tool with support of autocompletion, symbol info, go to declaration, find references, hayoo search etc.
diff --git a/src/HsDev/Database.hs b/src/HsDev/Database.hs
--- a/src/HsDev/Database.hs
+++ b/src/HsDev/Database.hs
@@ -122,7 +122,8 @@
 
 -- | Standalone database
 standaloneDB :: Database -> Database
-standaloneDB db = filterDB (noProject . moduleId) (const False) db where
+standaloneDB db = filterDB (check' . moduleId) (const False) db where
+	check' m = noProject m && byFile m
 	noProject m = all (not . flip inProject m) ps
 	ps = M.elems $ databaseProjects db
 
