fix bug for header