Attempt to fix resize problems