corrects spam placement logic