fixed a bug on handling resource_name based proxy class name.