bugfixes read-only transactions