Fix inconsistent API response