Fixed new Windows issues, fixed bug when renaming and deleting metadata