fix result reading