fix errors in transaction histories