if 'config' changed to 'mode'

I think you meant "mode", "config" makes no sense at this position. Just a little bugfix.