Total is not adding correctly