fix TRANS and PART in average()