fix pdo exception