fixed a bug in the `version` command