fixing average