Fix webservice return check