fixing seq counter