fixed bug in rmarchive