fixed a null reference when loading with too few config parameters