fix pre/post sections need %end