Fix calculation of ship totals