added missing stop condition to ReadOneTransaction