They are separated by their ID number. Possibly both IDs are incorrectly used in an "on *:DIALOG:name:sclick:id:" section or something similar.
Posting the script here so people can track down the bug would be helpful.