fixes #5270 Host starts when you archive another host

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