fixes #3312 Host Deletes on backend but with errors in log

Fixed the issue and pushed the code for review, please check it.