When the plugin inserts an ID it leaves a space at the end of it which is invalid. (125 of widget-css-classes.class.php)
Additionally, if an ID exists the new one is just appended in front of it to form something like id="new-id existing-id". That's logical for classes but in the case of IDs neither ID work any longer. The regex should be expanded so that the entire ID is replaced.