fix findbugs issues related to transactions