Fix a typo on api call slicing