fixes a problem with multiline input