Fix bugs with dynamic config.