fix gauge length saving