Fix multiline issue. Multiline codec not working as expected