fixed obvious error in body parsing