MMC fix null pointer dereference