fixed spamming bug.