rnAverage bugfix