handle lang api fail