Fixed a small bug where clicking on the same button did nothing.