Fix bug in query()