Bug fix for node parsing