SWC-367: remove dialog/window blink if modal, seems to be messed up on Chrome