fix resize Bug

fix resize Bug