Sequence bug fixed