Fixed a small bug when the user pressed the same button two times.