Fix ungit behavior