Fix error with pdf processor