fix ugly error message when renaming an event