Taking const reference of temporary object doesn't look good.

Otherwise it results in memory corruption when some config categories doesn't exist.