Fixed registerClass