fix hostname shortening