Fix multiline matching