Minor fix to rest client