Fix to model mass scaling which addresses issue #223

falg -> flag