Limpeza de erros - main (99% completed)