fix null pointer for mm version