fix mass matrix