Make selector parsing deterministic