Sometimes, the punctuation rules you set up will inadvertently result in unwanted punctuation combinations. Rather than investing too much time trying to solve the puzzle of what is causing the extra punctuation, it can be easier to just define a replacement rule. For instance, suppose a citation ends up ending with a comma, a space, and a closing parenthesis. It is probably faster to just add a custom replacement that searches for "comma, space, closing parenthesis" and replaces it with just a closing parenthesis. To do so, click File > Citation style properties > Replacements > More.