Revert "remove head error"

This reverts commit d5f4113cdab7b8cc506ac5cc2b8daf6ebde0acef.