fix resize script