Fix headers generation in formatting in generate-schema profile