fixed fn bug when body is nil