Sunroof on 2003 vw beetle

When I opened my sunroof it pulled the sun shade inside the roof, then I pulled that out. Now the sunroof will go to the last nitch and will not entirely close. It opens right back up and stays open.

There is a part of the shade jammed in the track if you remove the piece is jammed it will work properly