fix resize frames