fixed sequence bug