Fix an array reference issue when creating the classes and properties structures.