Fixed inicialization of ProxyFactory