fixed double sequence bug