fix class proxy