bug fix for saving average data