a strange bug fix for old git versions