Using the T_MERGE operator should ensure that the current parse state pushed the current node. Also removing a debug statement