fix waveavg2