fix head error