fix empty result reading