Fixed bug in ProxyPrimitive