fix "newline before obj" parsing issue