fix: 'X' button of configuration dialog didn't work