Fixing HEAD issues