Correction in reference counting