fix a bug that don't put some necesarry response headers