Fix event completion bug

- fixed a bug that marked every event as done instead of only marking the selected events