Trello #407

Fix for readonly transaction error