fix body parsing