Minor fixes to rest call