correcao na Main.php + teste check_project_permanent