Bugfix for hosts reading