tree view remembers the last state. fixed #409