compatibility fix for old git