object_proxy: fix assertions