fixed bug with spamming issue.