fix bug - wrong api issue