Library, fix delete

Could not delete file when it was renamed