fix http issues