fixed m bug