fix overflowing in modal dialog