Fixes MacOSX resize events