PSG qualifies painfully for the final