Fix config loader