Fix config file returning bug