Fix error on rename event. Fixes #2