fix configs cannot be loaded correctly