fix parsing issue with multiple nodes within a single selector