fix defenition of commit type.