Fix a problem with autoapproved plugins