Fixed crash when calling "setEnabled:" / "registerClass:" multiple times