Trying to fix a problem with the total result