fix bug when checking the delete checkbox on
the injection page.