Fixing bugs when adding hosts, wrong placement of 'end'