fix multiple archives problem