fix getMinor() has side effect on version string bug