bug fix: mass  undefined