Fixed a bug where one of the buttons didn't disable properly under certain conditions.