fixed bug that made filewatcher crash when renaming files