Fix error in debug code.
Don't increment and decrement the reference count.
Revert previous fix.