Fixed bug with shim in dialogs