Avoid resetting unnecessarily