Fixes a bug in the proxy initialization.