fixing gauge bug