Fix a crash of particle test