Fix crash: use deleteLater()