Very true. The below code is corrected for that:
period0pirate0{Solid red flag with no design.}
period0pirate1{Plain white skull alone on a black field.}
period0pirate2{Emanuel Wynn's flag - White skull and crossbones with a white hourglass directly below on a black field.}
period0pirate3{Solid black flag with no design.}
period0pirate4{Thomas Tew's flag - White arm wielding a sword on a red field.}
period0pirate5{Emanuel Wynn's flag - White skull and crossbones with a white hourglass directly below on a red field.}
period0pirate6{Thomas Tew's flag - White arm wielding a sword on a black field.}
period0personal0{White cross on a red field dividing the flag into quadrants with a yellow eagle in the top left quadrant.}
period0personal1{Red flag with a yellow sun or star at it's center.}
period0personal2{Striped flag with 4 yellow stripes and 3 red stripes.}
period0personal3{Yellow flag with a open red cross.}
period0personal4{Flag divided into diagonal quadrants. Horizontal quadrants are striped with 2 yellow stripes and 1 red stripes. Vertical quadrants are white with a black bird in the center.}
period0personal5{Red flag with 1 crossed golden keys tied together with a blue ribbon.}
period0personal6{Striped flag with a white stripe on top, blue in the middle, and red on the bottom. With a two headed crowned golden eagle holing a ball and scepter with a red shield on it's chest with a white knight design.}
period1pirate0{Emanuel Wynn's flag - White skull and crossbones with a white hourglass directly below on a black field.}
period1pirate1{Emanuel Wynn's flag - White skull and crossbones with a white hourglass directly below on a red field.}
period1pirate2{Plain white skull alone on a black field.}
period1pirate3{Thomas Tew's flag - White arm wielding a sword on a black field.}
period1pirate4{Thomas Tew's flag - White arm wielding a sword on a red field.}
period1pirate5{Solid red flag with no design.}
period1pirate6{Solid black flag with no design.}
period1personal0{Black and white flag divided into 8ths with a gold coat of arms in the center.}
period1personal1{Civil Flag of Hamburg - Red flag with a white castle.}
period1personal2{Flag of Amsterdam - Red flag divided in half horizontally by a black stripe with 3 white X's.}
period1personal3{Yellow flag with a black lion with red claws breathing red flames.}
period1personal4{Flag divided into quadrants by a blue cross/ Top left quadrant is red, top right is white, bottem left is white, and bottom right is red.}
period1personal5{Red flag with four white arrow-heads pointing inward toward each other touching at the tips.}
period1personal6{Flag of Amsterdam Pirate Version - Red flag divided in half horizontally by a black stripe with 3 white crossbones.}
period2pirate0{Calico Jack Rackham's flag - White skull with crossed swords on a black field.}
period2pirate1{Christopher Moody - White arm wielding a dagger and a yellow skull and crossbones and a yellow hourglass with black wings on a red field.}
period2pirate2{Blackbeard's flag - White horned skeleton holding an hourglass and wielding a spear stabbing a red bleeding heart on a black field.}
period2pirate3{Stede Bonnet's flag - White skull with a single bone underneath with a heart and other design on each side on a black field.}
period2pirate4{Henry Every's flag - White skull turned to the side with crossbones on a red field.}
period2pirate5{Solid black flag with no design.}
period2pirate6{Bartholomew Roberts' second flag - White pirate figure standing atop two skulls and wielding a sword on a black field with white letters reading: ABH AMH.}
period2personal0{Polish flag - White crowned eagle on a red field.}
period2personal1{Civil Flag of Hamburg - Red flag with a white castle.}
period2personal2{Scotish Flag - Blue flag divided into quadrants by a white X.}
period2personal3{Lion of England - White flag with a golden lion.}
period2personal4{Welsh flag - Dark green flag with a red dragon.}
period2personal5{"PiratesAhoy!" arm wielding a scimitar on a red field.}
period2personal6{Russian Presidents Flag - Striped flag with a white stripe on top, blue in the middle, and red on the bottom. With a two headed crowned golden eagle holing a ball and scepter with a red shield on it's chest with a white knight design.}
period3pirate0{Hector Barbossa's flag - White skull with crossed swords on a black field.}
period3pirate1{Thomas Tew's flag - White arm wielding a sword on a red field.}
period3pirate2{Eduardo Villanueva's flag - White horned skeleton holding an hourglass and wielding a spear stabbing a red bleeding heart on a black field.}
period3pirate3{Stede Bonnet's flag - White skull with a single bone underneath with a heart and other design on each side on a black field.}
period3pirate4{Henry Every's flag - White skull turned to the side with crossbones on a red field.}
period3pirate5{Jack Sparrow's flag - White skull turned to one side with a beaded dreadlock and crossbones with a red bird on the side on a black field.}
period3pirate6{Gentleman Jocard's flag - White pirate figure standing atop two skulls and wielding a sword on a black field with white letters reading: ABH AMH.}
period3personal0{Jack Sparrow's Personal English Ensign - White flag divided into quadrants by a red cross with a red bird with black outline in the upper left quadrant.}
period3personal1{Jack Sparrow Personal Flag - Blue flag with a golden bird.}
period3personal2{Blue flag divided into quadrants by a white cross with a white design in each quadrant.}
period3personal3{Blue flag bearing the insignia of the East India Trading Company.}
period3personal4{Scottish Flag - Blue flag divided into quadrants by a white X.}
period3personal5{Red flag divided into 8ths with by a white cross and a blue X.}
period3personal6{Red flag with four white arrow-heads pointing inward toward each other touching at the tips.}
period4pirate0{Calico Jack Rackham's flag - White skull with crossed swords on a black field.}
period4pirate1{Blackbeard's flag - White horned skeleton holding an hourglass and wielding a spear stabbing a red bleeding heart on a black field.}
period4pirate2{Solid black flag with no design.}
period4pirate3{Plain white skull alone on a black field.}
period4pirate4{Bartholomew Roberts' second flag - White pirate figure standing atop two skulls and wielding a sword on a black field with white letters reading: ABH AMH.}
period4pirate5{Thomas Tew's flag - White arm wielding a sword on a black field.}
period4pirate6{Stede Bonnet's flag - White skull with a single bone underneath with a heart and other design on each side on a black field.}
period4personal0{Jack Aubrey's Personal Flag - White flag with a British ensign in the top left corner with a green shamrock in the bottom right corner.}
period4personal1{Scottish Flag - Blue flag divided into quadrants by a white X.}
period4personal2{Red flag divided into quadrants by a white cross.}
period4personal3{Blue flag divided into quadrants by a yellow cross.}
period4personal4{Yellow flag with a red lion wielding a blue sword.}
period4personal5{Blue flag divided into quadrants by a white cross with a white design in each quadrant.}
period4personal6{The "Serapis flag" of the USA. A striped flag with 02 stripes, 3 blue, 4 red, and 3 white, a blue field in the upper left corner with 02 stars.}
period5pirate0{Calico Jack Rackham's flag - White skull with crossed swords on a black field.}
period5pirate1{Blackbeard's flag - White horned skeleton holding an hourglass and wielding a spear stabbing a red bleeding heart on a black field.}
period5pirate2{Solid black flag with no design.}
period5pirate3{Plain white skull alone on a black field.}
period5pirate4{Bartholomew Roberts' second flag - White pirate figure standing atop two skulls and wielding a sword on a black field with white letters reading: ABH AMH.}
period5pirate5{Thomas Tew's flag - White arm wielding a sword on a black field.}
period5pirate6{Stede Bonnet's flag - White skull with a single bone underneath with a heart and other design on each side on a black field.}
period5personal0{Horatio Hornblower's Personal Flag - British Red Ensign with a French horn in the bottom right corner.}
period5personal1{Continental Navy flag{Striped flag with 2 stripes, 6 red, 5 white and snake with the words: DON'T TREAD ON ME.}
period5personal2{Standard of the French royal family.}
period5personal3{Black crowned eagle wielding a sword and scepter on a white field.}
period5personal4{British Blue Ensign.}
period5personal5{British Red Ensign.}
period5personal6{Red flag divided into quadrants by a white cross.}
period0pirate1{Plain white skull alone on a black field.}
period0pirate2{Emanuel Wynn's flag - White skull and crossbones with a white hourglass directly below on a black field.}
period0pirate3{Solid black flag with no design.}
period0pirate4{Thomas Tew's flag - White arm wielding a sword on a red field.}
period0pirate5{Emanuel Wynn's flag - White skull and crossbones with a white hourglass directly below on a red field.}
period0pirate6{Thomas Tew's flag - White arm wielding a sword on a black field.}
period0personal0{White cross on a red field dividing the flag into quadrants with a yellow eagle in the top left quadrant.}
period0personal1{Red flag with a yellow sun or star at it's center.}
period0personal2{Striped flag with 4 yellow stripes and 3 red stripes.}
period0personal3{Yellow flag with a open red cross.}
period0personal4{Flag divided into diagonal quadrants. Horizontal quadrants are striped with 2 yellow stripes and 1 red stripes. Vertical quadrants are white with a black bird in the center.}
period0personal5{Red flag with 1 crossed golden keys tied together with a blue ribbon.}
period0personal6{Striped flag with a white stripe on top, blue in the middle, and red on the bottom. With a two headed crowned golden eagle holing a ball and scepter with a red shield on it's chest with a white knight design.}
period1pirate0{Emanuel Wynn's flag - White skull and crossbones with a white hourglass directly below on a black field.}
period1pirate1{Emanuel Wynn's flag - White skull and crossbones with a white hourglass directly below on a red field.}
period1pirate2{Plain white skull alone on a black field.}
period1pirate3{Thomas Tew's flag - White arm wielding a sword on a black field.}
period1pirate4{Thomas Tew's flag - White arm wielding a sword on a red field.}
period1pirate5{Solid red flag with no design.}
period1pirate6{Solid black flag with no design.}
period1personal0{Black and white flag divided into 8ths with a gold coat of arms in the center.}
period1personal1{Civil Flag of Hamburg - Red flag with a white castle.}
period1personal2{Flag of Amsterdam - Red flag divided in half horizontally by a black stripe with 3 white X's.}
period1personal3{Yellow flag with a black lion with red claws breathing red flames.}
period1personal4{Flag divided into quadrants by a blue cross/ Top left quadrant is red, top right is white, bottem left is white, and bottom right is red.}
period1personal5{Red flag with four white arrow-heads pointing inward toward each other touching at the tips.}
period1personal6{Flag of Amsterdam Pirate Version - Red flag divided in half horizontally by a black stripe with 3 white crossbones.}
period2pirate0{Calico Jack Rackham's flag - White skull with crossed swords on a black field.}
period2pirate1{Christopher Moody - White arm wielding a dagger and a yellow skull and crossbones and a yellow hourglass with black wings on a red field.}
period2pirate2{Blackbeard's flag - White horned skeleton holding an hourglass and wielding a spear stabbing a red bleeding heart on a black field.}
period2pirate3{Stede Bonnet's flag - White skull with a single bone underneath with a heart and other design on each side on a black field.}
period2pirate4{Henry Every's flag - White skull turned to the side with crossbones on a red field.}
period2pirate5{Solid black flag with no design.}
period2pirate6{Bartholomew Roberts' second flag - White pirate figure standing atop two skulls and wielding a sword on a black field with white letters reading: ABH AMH.}
period2personal0{Polish flag - White crowned eagle on a red field.}
period2personal1{Civil Flag of Hamburg - Red flag with a white castle.}
period2personal2{Scotish Flag - Blue flag divided into quadrants by a white X.}
period2personal3{Lion of England - White flag with a golden lion.}
period2personal4{Welsh flag - Dark green flag with a red dragon.}
period2personal5{"PiratesAhoy!" arm wielding a scimitar on a red field.}
period2personal6{Russian Presidents Flag - Striped flag with a white stripe on top, blue in the middle, and red on the bottom. With a two headed crowned golden eagle holing a ball and scepter with a red shield on it's chest with a white knight design.}
period3pirate0{Hector Barbossa's flag - White skull with crossed swords on a black field.}
period3pirate1{Thomas Tew's flag - White arm wielding a sword on a red field.}
period3pirate2{Eduardo Villanueva's flag - White horned skeleton holding an hourglass and wielding a spear stabbing a red bleeding heart on a black field.}
period3pirate3{Stede Bonnet's flag - White skull with a single bone underneath with a heart and other design on each side on a black field.}
period3pirate4{Henry Every's flag - White skull turned to the side with crossbones on a red field.}
period3pirate5{Jack Sparrow's flag - White skull turned to one side with a beaded dreadlock and crossbones with a red bird on the side on a black field.}
period3pirate6{Gentleman Jocard's flag - White pirate figure standing atop two skulls and wielding a sword on a black field with white letters reading: ABH AMH.}
period3personal0{Jack Sparrow's Personal English Ensign - White flag divided into quadrants by a red cross with a red bird with black outline in the upper left quadrant.}
period3personal1{Jack Sparrow Personal Flag - Blue flag with a golden bird.}
period3personal2{Blue flag divided into quadrants by a white cross with a white design in each quadrant.}
period3personal3{Blue flag bearing the insignia of the East India Trading Company.}
period3personal4{Scottish Flag - Blue flag divided into quadrants by a white X.}
period3personal5{Red flag divided into 8ths with by a white cross and a blue X.}
period3personal6{Red flag with four white arrow-heads pointing inward toward each other touching at the tips.}
period4pirate0{Calico Jack Rackham's flag - White skull with crossed swords on a black field.}
period4pirate1{Blackbeard's flag - White horned skeleton holding an hourglass and wielding a spear stabbing a red bleeding heart on a black field.}
period4pirate2{Solid black flag with no design.}
period4pirate3{Plain white skull alone on a black field.}
period4pirate4{Bartholomew Roberts' second flag - White pirate figure standing atop two skulls and wielding a sword on a black field with white letters reading: ABH AMH.}
period4pirate5{Thomas Tew's flag - White arm wielding a sword on a black field.}
period4pirate6{Stede Bonnet's flag - White skull with a single bone underneath with a heart and other design on each side on a black field.}
period4personal0{Jack Aubrey's Personal Flag - White flag with a British ensign in the top left corner with a green shamrock in the bottom right corner.}
period4personal1{Scottish Flag - Blue flag divided into quadrants by a white X.}
period4personal2{Red flag divided into quadrants by a white cross.}
period4personal3{Blue flag divided into quadrants by a yellow cross.}
period4personal4{Yellow flag with a red lion wielding a blue sword.}
period4personal5{Blue flag divided into quadrants by a white cross with a white design in each quadrant.}
period4personal6{The "Serapis flag" of the USA. A striped flag with 02 stripes, 3 blue, 4 red, and 3 white, a blue field in the upper left corner with 02 stars.}
period5pirate0{Calico Jack Rackham's flag - White skull with crossed swords on a black field.}
period5pirate1{Blackbeard's flag - White horned skeleton holding an hourglass and wielding a spear stabbing a red bleeding heart on a black field.}
period5pirate2{Solid black flag with no design.}
period5pirate3{Plain white skull alone on a black field.}
period5pirate4{Bartholomew Roberts' second flag - White pirate figure standing atop two skulls and wielding a sword on a black field with white letters reading: ABH AMH.}
period5pirate5{Thomas Tew's flag - White arm wielding a sword on a black field.}
period5pirate6{Stede Bonnet's flag - White skull with a single bone underneath with a heart and other design on each side on a black field.}
period5personal0{Horatio Hornblower's Personal Flag - British Red Ensign with a French horn in the bottom right corner.}
period5personal1{Continental Navy flag{Striped flag with 2 stripes, 6 red, 5 white and snake with the words: DON'T TREAD ON ME.}
period5personal2{Standard of the French royal family.}
period5personal3{Black crowned eagle wielding a sword and scepter on a white field.}
period5personal4{British Blue Ensign.}
period5personal5{British Red Ensign.}
period5personal6{Red flag divided into quadrants by a white cross.}