diff --git a/Text/JSON/JPath.hs b/Text/JSON/JPath.hs
--- a/Text/JSON/JPath.hs
+++ b/Text/JSON/JPath.hs
@@ -3,7 +3,7 @@
 {- | I wanted to insert a description here, but got tired fighting with haddock escaping. Documentation: <http://bitcheese.net/wiki/code/hjpath>
 -}
 
-module Text.JSON.JPath (jPath, jPathModify, Json(..), QueryElement(..), HJsonLike, QueryLike) where
+module Text.JSON.JPath (jPath, jPathModify, QueryElement(..), HJsonLike, QueryLike) where
 
 import qualified Data.Map as Map
 import Data.List
@@ -82,7 +82,7 @@
 
 element :: GenParser Char st [QueryElement]
 element = do
-	parsedName <- optionMaybe (deepLookup <|> wildcard <|> name)
+	parsedName <- optionMaybe (try deepLookup <|> wildcard <|> name)
 	parsedIndex <- optionMaybe index
 	return $ catMaybes [parsedName, parsedIndex]
 
@@ -107,7 +107,7 @@
 	result <- between (string "[") (string "]") integer
 	return $ ArrayLookup $ read result
 
-parseExpression = parse expression "JPath query"
+parseExpression = parse expression "JPath query" 
 
 jPathP :: [QueryElement] -> Json -> [Json]
 jPathP [] v = [v]
diff --git a/hjpath.cabal b/hjpath.cabal
--- a/hjpath.cabal
+++ b/hjpath.cabal
@@ -1,5 +1,5 @@
 Name: hjpath
-Version: 3.0
+Version: 3.0.1
 Synopsis: XPath-like syntax for querying JSON
 Category: Text
 Description: JPath is XPath-inspired query language to query JSON data.
