Fixed a bug on Element::setLabel()