Fix click event when delete has been issued