to fix resize