Fix deatached head