fix for avg-len flag