fix flask init