fix load config hang