Distorsion on the poles of stereo panos

Hi,

I ask me could it be possible that the distortion on the poles of stereo panos can be avoided? Or is it impossible? Here an example of straight lights on a train ceiling.

-Micha