Workaround for a possible issue with resetting.