fix resetting inputstream after reading all lines from provider