Update invalid selectors to reference classes.