Fix a server-side bug in API.