1. Open "Options->Preferences" and click the "General" tab.
2. On the right side, under the "Amino Acids" or "Nucleic Acids"
list, locate any characters you want included in an ID/similarity calculation
in the "Don't Include" list, then highlight them and click the '<' button
to move them over to the 'Include' list.
3. Press "Save & Close"
If you want to be safe, and just have all cahracters counted, just highlight
everything and move it to the "Include" list.
There is an option in 5.0.8 or later to either count non-included characters
as positions or ignore them completely when doing similarity/ID shading.
It is found on the same preferences page as the include lists.
Sorry about the bug.