bugfix for AdvancedProxyHandler