Ensured _api is called correctly.