Fix bug where class names were being appended rather than set each load