fixed the seq=0/1 case