fixed total error.