Fixed bug that was returning wrong transaction ids