fixed problem with pdf