Fixed several typos that were causing bugs for Marg=3.