fixed the parse-body undefined error