fix GetExtendedPattern