fixes for parsing tree view + grammar view