fix init tab bug. no test still