fix client-side PATCH calls