Fixed duplicated values bug in whereClause class