fix bug of 0 mass