fixed spamming button problem