Minor fixes for the api#process