Replace succeed with complete in res.