Fix the bug that was causing the last byte of the stream to be returned incorrectly...