Fix tx id condition