fix for weighted mass