fixed config overwrite bug