Fixed sequence bug