prevent undefined body