regenerate code to fix flask header problem