Well, it was only an advisory referendum. The mistake was promising to enact an advisory referendum. They should have said, we will take the result as the wish of the people. Make a deal with the EU, and then let the people ratify the deal, or not, with a binding referendum.