fixed indefinite length parsing bug