Fixed the issue where duplicate events get loaded.