fix bug on older git version