Fixed 'total of an array'