Fixed two cases where http connection was not created statically.