read-only transaction did not work as I thought