fixed can't close bug