I have an ongoing problem with foaming out of my kegs. It seems that when the keg is full I have no problem pulling a pint with a perfect head. However, as the keg gets low, say about a gallon or so left, when I draft off a glass full I can see clear beer immediately comes out at first, followed by a blast of foamed beer, and then I end up with mostly a glass of foam with a small amount of clear beer in the glass. Any clues as to what I’m doing wrong?