Fix for bad stdClass use in flood protecton