fixes #34 - applies Sam's query fix