fixing auto header item bug