fixing #read_body called twice