Fix attribute error for API_WAIT_FOR_SERVICE.