Fix assert that would fire occasionally during reset.