fixed bug for deleting hostmasks