small bug with detecting api calls, minor typo.