fix bug for header response