fix head error.