Quickfix.
Runtime error fix.
Merge pull request #3299 from Segrain/master

Runtime error fixes for random events.