Fix #851

Fix for https://snowy-evening.com/issues/details/479/851/
Need to join while delete :)