fixing hostname order