Fix null protocol header error