fixed some PMD flags for RandomEvent