Fixed the bug that would show a toast forever if the user clicked many times on a button.