fix head commits problems