fixing bug in logging txids