Attempt to repaint on class change