Fixed sequence id bug