fixed bug when deleting security must also deselect