Fix for proxing anonymous classes