Fixed bug when no specific hosts have been enabled.