fixes #206: cortex update: fix the broken command update