Fixed the OnDirectoryChange event trigger.