bug fixes to transaction logging