fix resize limit calculation, increment version number