Issue #80 - Sequence reset on logon

See the bug #80.