Fix: compile error when destructor is private