Basically, The Pope is only infallible concerning the teachings of the Catholic church. In everything else he is a sinner.
Jesus is Infallible, Popes not so much.