fix bug in boxcarAverage()