fixing an edge case with attribute selector parsing