Fixing a bug for plugin settings