Remove ../ from API calls