fixed bug in retrieving PDF value