API base URL fix