Minor bugfix in the Query.getData()