fixed crash when body is empty