Fix setHost method