Fix crash in plugin configuration