Fix: mac window no longer freezes after dialog cancel