Fix copying keys. The IFS approach does not work, but there is a better way of course.