Fix archive plugin bug