fix condition in hostname