fix sec/prog headers bug