Fix copying map