[Fix] - The variable is zero when the length of list equals 1