Fix using non-existent xc function
Merge pull request #164 from tklengyel/event_fix

Fix using non-existent xc functions in events