Fixed exception when package is duplicated, because url index is checked first