corrects http error