hotfix patch for pdf race condition.