Fixing bug with nil config