Karanka told AS: "We decided he would stay in Madrid. Kaka and the club are working to find a good solution for all parties."
Asked about Modric, he added: "Which club would not want a player like him?
"He is an outstanding footballer and had a great tournament (Euro 2012). It is clear that he would fit in Madrid."