fix pdo could not be serialized bug