Fixed missing log in marg; still breaks for n>2M due to too many blocks