Fixed multiple deletion of activated plugins