IdMask must be Max seq end, not seq width