fix resize box