fix the failure: Cannot modify header information