The answer was wrong: did not take into account the condition that $X$ be convex.