Fixed checked mode errors in treeview