fix bug mm!=m