fixed pdo exception