update branch head all the time (#42).
fix error on startup in certain configurations (#150).