fix on http error