fix toggle bug
for QTree