fix issue with edited events being rendered multiple times