[IT modules] Fix skipping of the wasted bytes for patterns.