think i fixed a bug on the API call