fix classes ref