fixed bug in pdf monitoring