fix resize bug 2