Fixed shecking for correct sequence number