fix wrong tree lines (caused by javascript's end of statement as "enter")