Fixed condition for deleting the default config