Ensure that state is reset