The problem is so called Gibbs Paradox which is actually treated in statistical mechanics not thermodynamics. And it's no wonder because microscopical definition of entropy does not belong to thermodynamics. Thermodynamics is strictly macroscopical theory.
The essence of Gibbs paradox is that...