removing parser again, printing invalid document instead