Fix assertion in CArray