fix the error for archive