fix segfault if gauge doesn't exist