fixed a problem with the widget geometry under MacOS