fix size of mebibyte

--rebased-from #1446 partially