fixed error not using custom hosts