fix error when body does not exist