fixing the issue that duplicates the newly added events