Particle fix, debugstate, debug class