Barcelona have cut loose Yusuf Demir from his loan.
Demir has now returned to Rapid Vienna after Barca ended his season-long loan this week.
The decision was made after Barca coach Xavi failed to be won over by the Austrian after he replaced the sacked Ronald Koeman.
Demir is now back with Rapid and has just extended his contract to 2024.
"There were extremely intensive discussions with and between many people involved, but now I'm really happy that we've come to a very good solution for everyone," explained Rapid's sporting director Zoran Barisic.
Demir is also satisfied: "I'm really looking forward to the upcoming challenges and seeing my old teammates again. The anticipation is very great, now I'm back at home with my club."