fixed last HEAD reference