Fixing modal resizing. Thanks to @tomtaylor for finding the broken dialog.