fix 1372 due to git HEAD file corrupted issue