fixed variables in pdf_controller