Fixing some bugs in transaction document