fix creating class with manager