[SourceEditor] Fixed dangling event handler.