Fixed a bug with CClassRef.