fix crash bug where new files can be present in filesystemManager.directory before observers were notified