fix pdo errors