Fixed bug in PapersController