Iterate threw categories properly.
Merge pull request #26 from CodeCoreYVR/event_c

Iterate threw categories properly.