Write http fix