Fix bug in loading default events