fix some stuff in cli.commands.update