Fix some vet warnings.
Don't dirty read the sequence.