loadButton.tag = "loadButton"; results in: "Tag: l is not defined" saveButton.tag = "saveButton"; results in: "Tag: s is not defined" So it's trying to set the tag to the first character of whatever you pass.
Yes. As the above shows, for some reason it's trying to set the tag to be only the first letter of the string being passed. Seems like a weird error to be introduced, but should be easy to fix.