Bugfix in processing of average angle.