Fixing the multi-line read bug.