fix spam condition