Corrected single class setters to avoid overwriting the whole class attribute.