Fixes resizing on OS X