fixing archive bugs