Fixed a crash when file is deleted
Locked down some dependencies