Fix proxy class selection bug.