fix resize stuck