Revert patch 58f036ad that causes object duplication (which tried to fix...
Revert patch 58f036ad that causes object duplication (which tried to fix objects getting hidden from client) and fix the original problem correctly. This fixes the second distinct object duplication bug.