fixed sequence bug
merged