fixed issue reading data from pdf file