fix api url problem