Mms: fix null point bug