fix resize calculation bug
merge master
add min versioN