Fixed incorrect size when overwriting an existing mapping

See Issue #1