Fixed bug in getConfigFromKey