Fixed duplicated unique keys (bug 945905)