fix config copying