Fix for anonymous classes