Fix a bug of version output.