fix bug-static value of m