JTree code reset bugfix.