In the show Once Upon a Time, the town of Storybrooke has been under the Dark Curse three times. First there was the original curse cast by Regina, which was broken by Emma in the Season 1 finale. Then there was the second curse, cast by Snow White and broken by Regina in Season 3B. And finally there was the third curse, cast by Hook in Season 5A.
Under Hook's curse, anyone who tries to leave Storybrooke is turned into a tree, which is what happened to Dopey. Now as far as I can remember, Hook's curse was never broken. And yet in the Season 5 finale, Henry, Violet, Emma, Regina, and Gold all leave Storybrooke and go to New York.
So my question is, how were people able to leave Storybrooke in the Season 5 finale? Was Hook's curse still present, and if so why weren't all those people turned into trees? And if it wasn't present, when and how was it broken?