On the full shift on two symbols, we consider the potential defined by V(x)=n1 where n denotes the longest common prefix between the infinite word x and an element of the subshift associated to the Thue-Morse substitution. Given a non negative real number I^2, the pressure function is P(I^2):=up{hI^¼+I^2∫VdI^¼}, where the supremum is taken over all shift invariant probabilities I^¼ on the full shift and hI^¼ is the Kolmogorov entropy. We prove that there is a freezing phase transition for the potential V: For I^2 large enough, the pressure P(\be) is equal to zero. Similar results were previously published by Bruin and Leplaideur in \cite{BL2}, \cite{Bruin-Leplaid-13} but their proofs contained significant gaps and required substantial clarification.