Fixed seqnum problem in creating windows