add small bug with false error log for average measurement