fix resize with nothing visible