weird steering

I had a corvette that did that when it was cold out after changing p/s hoses. What I did was take some of the p/s fluid out and kept turning the wheels left and right for a while. My guess is there was air in the lines. It was fine after that.