fixes #48

on resolving duplicate files the name of the file was taken into account
on resolving urls, the urls where just deleted