diff --git a/app/Http/Controllers/TrabalhoController.php b/app/Http/Controllers/TrabalhoController.php
index 582ec1a31afd58b48747aa458f7b27e2d3a0b51b..8336fa0fece681bae3859487d33f7556ec7a99f9 100755
--- a/app/Http/Controllers/TrabalhoController.php
+++ b/app/Http/Controllers/TrabalhoController.php
@@ -918,7 +918,7 @@ class TrabalhoController extends Controller
                     }
 
                     if ($request->has('anexoPlanoTrabalho') && array_key_exists($part, $request->anexoPlanoTrabalho) && $request->nomePlanoTrabalho[$part] != null) {
-                        if (Arquivo::where('participanteId', $participante->id)->count()) {
+                        if (Arquivo::where('participanteId', $participante->id)->where('trabalhoId', $trabalho->id)->count()) {
                             $arquivo = Arquivo::where('participanteId', $participante->id)->where('trabalhoId', $trabalho->id)->first();
                             $path = 'trabalhos/' . $evento->id . '/' . $trabalho->id . '/';
                             $nome = $data['nomePlanoTrabalho'] . ".pdf";