fix bug for C#m
add tree-model