Fix bad magit bug that caused slow downs