fixed with sql api