fixes http type