Fix bug when mapAttr is nil