bug fix for host deletion