fix clang warning rank and index always less than zero
increment version