masn.unitCount is undefined