resolve problem with recursive parsing