Fixed key config crash bug