restore current head