Fix bug with delegation creation, update package.json