Correct `mergeConfigs` logic.