Small fix

Just a wrong api variable here.