Fixed a bug in MMSB script