fixed premature EOF problem when EOF in data