Fix to the createLabel() method.