FL-1803: fix profile copying. Can't use two identical keys when using a dict.