Fix local variables being overwritten by the refcounting change.