fixed some HEAD issues