api typo 2 duplicate close bracket