Fix copying maps