Bug fixed: Error calculating average of one single element