Sequence key bugfixes.