fixed big bug of not sending request to correct host