Fixed a bug in the rp-parse-tree function.