Merge "Fix copyLayerInto"