fixing pdfs controller