Fix gauge filtering bug