Uh... Where did %rir come from? :o
It fails for me, most likely because of the undefined var?
Also, why have %% when you don't even call for it?