fixed the first configuration link pointing to unallocated memory and added proper error handling for configuration loading.