Fix issue 1311 `Uninitialized string issue in version`