Fix bug in modals on OS X.