Handle wrapping transaction ids