Fixed bug in node type filter