Fix error when :config is nil