fixes head error