Fixed bug with applying uniqueExcept twice