Fix updateConfig() and remove trailing spaces
Fix front-end