fixed in-place map snafu