bug fix: mass undefined