Fix a rare bug for specific plugins