fix exception from undefined body