Fix the PDO bugs.