pdf stream fix