resolve reading exception issue