Fixed auto-creation for schema with circular dependencies