Fixed bug with missing templates in loadConfig