There's an error I can't fix

Everything seems to be done, but when I apply it to all the papers, the paper I clicked on later can show another paper. I wonder what might be the reason?