Remove superfluous variable modalWindowInstance