fix bug that thought null/regex were nodes

closes #2