attempt to fix resize issue