Fixed a bug with the version flag introduced last commit.