fixed bug with metaclasses and their inheritance order