Fixed an issue where orphans weren't being released when a shape was returned to the bucket.