fixed p:document with application/octet-stream