Fixing problem syncing entity if Proxy object is passed.