fixes HEAD object.