Correct delete when in modal, fix #3