fix resize box translation