bugfix transactions query