Fixed API_URL appending

Inversed logic