fixing api url