fix OSX window reize