fixed a weird compilation error in viewAllPapers