fix parse trees