fixed bug when toggling headers that have no extension