Fix an element's class