fixed syntax for querying nested properties