Fixed config copy bug