fix flask