fix the apibase