fix seq bug