fix default transaction in plugin