Prevent state leakage in inheritance