Fix results bug by trimming selectors