Sometimes a liver pattern can produce a stomach pattern. For example, Liver Yin deficiency can lead to Stomach Fire. In that case, Yi Guan Jian seems to help, or even Zhi Bai Di Huang Wan.
What exactly were you seeing that made it a liver pattern? In the event the above doesn't make sense, I might be able to give you a better answer with that information.
All the best,
Steve