Fix on hosts logic creation