fixing bug and trailing comma on default config