fixed bug with transaction id