fix sharing the same file (== same hash) multiple times