 In May a new agreement was signed and the main target of Montenegrin annexation became Ulcinj as the plan for Hoti and Gruda failed.To help the defenders of Ulcinj, Hoti and Gruda decided to attack Montenegrin positions and captured Mataguži on July 12, but lost control over it eleven days later.The Ottoman army finally took over Ulcinj and handed it to Montenegro on November 22.