The fox comforts himself by changing his perception of the grapes because it is too uncomfortable to reconcile the thought that the grapes are sweet and ready for the taking, and yet he cannot have them. To reconcile these two conflicting ideas, the fox changes his perception of the grapes and in the process relieves the pain of what psychologists term cognitive dissonance.