Fix incorrect condition expression of for-loop in BodyNode::init