fixes bug with gi vs gi_archive logic