Correct wrong api usage