Fix transaction before filter