[Bug]: fixed mm-writer bug