avg percent bugfix