Fixed a loading bug

After a button's text changed to "Loading file...", it would not return
to being called the name of the file that the button is associated with.