fees tracker query fix