fix update chain head