fixed collapseHeaders