fix bug
added function of init header table