fixed pdf monitoring bugs