fix HTTP check