fix issue when the work tree is clean