Fixed some problems with flood detector (using old instance variables).