Fix init position (> input length) for stream mode.