fix size of mebibyte (rebased)

--rebased-from #1446 partially