fixed error finding duplicate file