spamming npe fix